<?php 
signcheck(array($pt,$imei,$uid));

require_once(S_ROOT."source/data/duobaogoods.php");

$list = array_values($list);

$page = (int)$_GET['page'];
$perpage = 6;
$start = $page*$perpage;

$list = array_slice($list,$start,$perpage);

$goodslist = array();

foreach ($list as $item)
{
	$row['goodsname'] = $item['name'];
	$row['icon'] = $item['icon'];
	$row['need_num'] = $item['need_num'];
	$row['per'] = $item['join_per'];
	$goodslist[] = $row;
}	

echo echojson('success',1,array('goodslist'=>$goodslist));
?>